package com.zmn.oms.zmn.business.interfaces.work;

import org.apache.commons.fileupload.FileUploadException;
import org.springframework.web.multipart.MultipartFile;

public interface OrderWorkUploadService {

    default String getFileName(String... strs) {
        StringBuilder sb = new StringBuilder();
        for (String str : strs) {
            sb.append(str);
            sb.append("_");
        }
        sb.deleteCharAt(sb.length()-1);
        return sb.toString();
    }

    String uploaderImage(MultipartFile file, String name, String path) throws FileUploadException;

    String uploaderImage(MultipartFile file, String path) throws FileUploadException;

    String uploaderFile(MultipartFile file, String name, String path) throws FileUploadException;

    String uploaderFile(MultipartFile file, String name) throws FileUploadException;
}
